package com.hos.net.req.relation;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.hos.net.req.BaseReq;
import com.hos.net.res.MsgHint;
import com.hos.utile.StringUtile;

/**查询关系状态,添加关系
 * Created by guom on 2018/10/31.
 */
public class RelationReq extends BaseReq {
    public String docId;

    @JsonIgnore
    public String hint;

    // (false 检验失败)
    @JsonIgnore
    public boolean isVerifyParameter() {
        if (StringUtile.isEmpty(docId)) {
            hint = new MsgHint("id不能为空").toJson();
            return false;
        }
        return true;
    }
}
